<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
    <script language="JavaScript" src="dateselect.js"></script>
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/jquery.inputform.js"></script>
	<link rel="stylesheet" href="css/form.css" type="text/css">
	<link rel="stylesheet" href="css/jquery.inputform.css" type="text/css">
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
	<script type="text/javascript">

	$().ready(function(){
		$("input.select1").inputfile();
		$("input.select2").inputfile({button:"<img src='img/select.gif'>"});
		});
	
	</script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">

    <%
  String[] priTable={"一般","重要","紧急","风险"};
  String[] affairTypeTable={"需求及版本","问题","例行工作"};
  String[] currentStateTable={"open","closed","pending","Venture"};
   %> 
  </head>
  
  <body>
<center><h1>添加新事务</h1></center>
  当前用户为：<%=session.getAttribute("userName")%>
<hr>
<form action="users.do?operator=register" method="post">

                                跟踪事务名称: <textarea rows="2" cols="100"  type="text" name="ue.affairName"></textarea><br>
			优先级:&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<select name='ue.PRI' style='width:100px'>
						<%
						for(int i = 0 ;i<priTable.length;i++)
						{
						%><option  ><%=priTable[i] %></option> <%
						}
						 %>
						</select><br>
			事务类别:&nbsp&nbsp&nbsp&nbsp&nbsp<select name='ue.affairType' style='width:100px'>
						<%
						for(int i = 0 ;i<affairTypeTable.length;i++)
						{
						%><option  ><%=affairTypeTable[i] %></option> <%
						}
						 %>
						</select><br>
			当前状态:&nbsp&nbsp&nbsp&nbsp&nbsp<select name='ue.currentState' style='width:100px'>
						<%
						for(int i = 0 ;i<currentStateTable.length;i++)
						{
						%><option  ><%=currentStateTable[i] %></option> <%
						}
						 %>
						</select><br>
			当前进展:&nbsp&nbsp&nbsp&nbsp&nbsp<textarea rows="2" cols="100"  type="text" name="ue.currentEvole"></textarea><br>
			打开时间:&nbsp&nbsp&nbsp&nbsp&nbsp<input type = "text" style = 'width:100px' name = "ue.openTime" onfocus="HS_setDate(this)"><br>
			关闭时间:&nbsp&nbsp&nbsp&nbsp&nbsp<input type = "text" style = 'width:100px' name = "ue.closeTime" onfocus="HS_setDate(this)">
				<!-- 责任人: --><input type="hidden" style='width:100px' name="ue.dutyMan" value= "<%=session.getAttribute("userName")%>"><br>
	<center><input type="submit" value = "完成增加" style='width:100px' ></input></center>
</form>

 </body>
</html>